﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt;

    public class t_sys_finance_type_Map : ClassMapping<t_sys_finance_type>
    {
        public t_sys_finance_type_Map()
        {
            //映射ID
            Id(x => x.type_id, map => map.Length(40));

            Property(x => x.is_valid);
            Property(x => x.create_date);

            Property(x => x.order_flag);
            Property(x => x.type_describe, map => map.Length(10000));
            Property(x => x.type_flag);
            Property(x => x.type_flag_name, map => map.Length(50));
            Property(x => x.type_name, map => map.Length(50));

            Table(t_sys_finance_type.TableName);

            
            //SchemaAction(NHibernate.Mapping.ByCode.SchemaAction.None);
        }
    }
}
